extends ../common/layout
block content
  section#content
    section.vbox
      section.scrollable.padder
        .m-b-md
          h3.m-b-none 个人设置
        .row
          .col-sm-6
            form.form-horizontal(action="/profile",enctype="multipart/form-data",method='post')
              input(type="hidden",name='user[_id]',value='#{user._id}')
              section.panel.panel-default
                header.panel-heading
                  span.h4 修改个人资料
                .panel-body
                  p.text-muted 请填写信息完毕后提交
                  .form-group
                    label.col-md-2.control-label 账号
                    .col-md-10
                      p.form-control-static #{user.email}
                  .form-group
                    label.col-md-2.control-label 头像
                    .col-md-10
                      img(src="#{user.face}", alt="#{user.nickName}的头像")
                    .col-md-10.col-md-offset-2
                      input.form-control(type='file',name='face')
                  .form-group
                    label.col-md-2.control-label 昵称
                    .col-md-10
                      input.form-control.parsley-validated(type='text',name='user[nickName]',value='#{user.nickName}')
                  .form-group
                    label.col-md-2.control-label 密码 #{user.address}
                    .col-md-10
                      input.form-control.parsley-validated(type='text',name='user[password]',value='#{user.password}')
                footer.panel-footer.text-right.bg-light.lter
                  button.btn.btn-success.btn-s-xs(type='submit') 提交

